package com.shimao.celnet.payment.mapper;

import com.shimao.celnet.payment.model.PPayCUPUser;
import com.shimao.celnet.payment.util.MyMapper;
import com.shimao.celnet.payment.model.PPayCUPUser;
import com.shimao.celnet.payment.util.MyMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface PPayCupUserMapper extends MyMapper<PPayCUPUser> {


    /**
     * 获取该用户的绑定卡相关信息
     * @param meruserid
     * @return
     */
    List<PPayCUPUser> findCUPUserByMeruserid(@Param("meruserid")String meruserid,@Param("custid")String custid);

    /**
     * 获取该用户的绑定卡相关信息
     * @param meruserid
     *  @param agreeid
     * @return
     */
    PPayCUPUser findCUPUserByMeruseridAndAgreeid(@Param("meruserid")String meruserid, @Param("agreeid")String agreeid);

    /**
     * 获取无效注册信息数据
     * @return
     */
    List<PPayCUPUser> findInvalidCUPUsers();

    /**
     *
     * @Author Galen
     * @Description //TODO 通过CUP的相关信息获取注册信息
     * @Date 11:40 2018/11/21
     * @Param [cupMap]
     * @return com.shimao.celnet.payment.model.PPayCUPUser
     */
    PPayCUPUser findCUPUserByCUPMap(Map<String, String> cupMap);

    /**
     *
     * @Author Galen
     * @Description //TODO 根据用户号和银行卡号获取注册信息
     * @Date 13:53 2018/11/21
     * @Param [meruserid, acctno]
     * @return com.shimao.celnet.payment.model.PPayCUPUser
     */
    PPayCUPUser findCUPUserByMeruseridAndBankCardNo(@Param("payMeruserid")String meruserid, @Param("payAcctno")String acctno);

    /**
     *
     * @Author Galen
     * @Description //TODO 获取该用户的绑定卡根据用户号
     * @Date 10:16 2018/11/23
     * @Param [meruserid]
     * @return com.shimao.celnet.payment.model.PPayCUPUser
     */
    PPayCUPUser findCUPUserByMeruserid1(String meruserid);
}